#include "Helper.h"

void Helper::QString2Char(const QString & stringIn, char * stringOut)
{
    QByteArray btArry = stringIn.toLatin1();
    strcpy(stringOut, btArry.constData());

    /*if (targetString.length() <= 0)
    {
        return 0;
    }
    char *pStr = (char*)malloc(targetString.length()+1);
    memset(pStr, 0, targetString.length()+1);
    std::string str = targetString.toStdString();
    strcpy(pStr, str.data());
    return pStr;
    *///return 0;
}